/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.services.saving;

/**
 *
 * @author jay
 */

import java.util.List;
import java.util.Map;
import src.domain.saving.Branchcfg;
import src.services.CRUEDService;

public class BranchcfgModel implements java.io.Serializable {
    
    private CRUEDService service;
    
    public BranchcfgModel() {
        service = new CRUEDService();
    }
    
    public List<Branchcfg> findAll(Map<String, String> filters) {
        return (List<Branchcfg>) service.findAll("Branchcfg", filters);
    }

    public boolean saveData(Branchcfg data) {
        return service.saveData(data);
    }
    
    public boolean deleteData(Branchcfg data) {
        return service.deleteData(data);
    }
    
    public Branchcfg getBbyId(Integer branchId) {
        return (Branchcfg)  service.getById(Branchcfg.class, branchId);
    }
    
     
}
